package template_method_pattern;

/**
 * 模板方法实现B
 *
 * @author wangzg13
 * @since 2022/8/5
 */
public class ConcreteB extends AbstractTemplate{
    @Override
    protected String strOperMethod() {
        return "模板方法B";
    }

    @Override
    protected void soutMethod(String param) {
        System.out.println("输出方法B："+param);
    }

    @Override
    protected boolean isContact() {
        return false;
    }
}
